package utils

/**
  * author: sheep.Old 
  * qq: 64341393
  * Created 2018/5/29
  */
object NumParse {


    def toInt(str: String)= {

        try {
            str.toInt
        } catch {
            case _: Exception => 0
        }
    }


    def toDouble(str: String)= {

        try {
            str.toDouble
        } catch {
            case _: Exception => 0.0
        }
    }

}
